import string
    
def main():
    inuser = input("Enter a string:")
    message = ""

    for b in inuser:
        message = b + message
    print(message)
main()
